package com.foreknow.service;

import com.foreknow.entity.User;

import java.util.List;

public interface UserService {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    /**
     * 根据用户名密码登录
     * @param username
     * @param password
     * @return
     */
    User login(String username,String password);

    /**
     * 查询全部用户
     * @return
     */
    List<User> listUser();

    /**
     * 根据条件查询
     * @param user
     * @return
     */
    List<User> selectBySS(User user);

    /**
     * (delmark逻辑删除)根据id修改delmark信息
     * @param user
     * @return
     */
    int removeUser(User user);

}
